package com.UI;

import com.Model.StudentDBModel;

import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;


/** Author : Mohammed
 * 
 */

public class ClassWebsite extends Activity{

	String courseNo;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.class_website);
     
       	Bundle extras = getIntent().getExtras();
    	courseNo = extras.getString("CourseNum");
    	
    	StudentDBModel model = new StudentDBModel(this);
    	
    	StringBuilder link = model.getWebLink(courseNo);
        
    	String webLink = link.toString();

        WebView mWebView;
        

        mWebView = (WebView) findViewById(R.id.webview);
        mWebView.getSettings().setJavaScriptEnabled(true);
        mWebView.loadUrl(webLink);
       
    	
    	
        }
    
   
 
 }

